package com.haixiaoke.saas.order.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 订单退费项目及价格对象 biz_order_refund_item
 *
 * @author panda
 * @date 2024-04-19
 */
@Data
public class OrderRefundItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 退费id
     */
    @Excel(name = "退费id")
    private Long refundId;

    /**
     * 退款订单id
     */
    @Excel(name = "退款订单id")
    private String checkOutOrderId;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private String orderId;

    /**
     * 关联订单
     */
    @Excel(name = "关联订单")
    private String linkedOrderId;

    /**
     * 房屋配置id
     */
    @Excel(name = "房屋配置id")
    private Long allocationId;

    /**
     * 房屋id
     */
    @Excel(name = "房屋id")
    private String houseId;

    /**
     * 审核记录id
     */
    private Long recordId;

    /**
     * 退费类型（1.房费,2.押金,3.损坏赔偿,4.延迟退房费）
     */
    @Excel(name = "退费类型", readConverterExp = "1=.房费,2.押金,3.损坏赔偿,4.延迟退房费")
    private String refundType;

    /**
     * 退款的数量
     */
    @Excel(name = "退款的数量")
    private BigDecimal refundQuantity;

    /**
     * 单项金额统计
     */
    @Excel(name = "单项金额统计")
    private BigDecimal itemSum;

    /**
     * 多项金额总额
     */
    @Excel(name = "多项金额总额")
    private BigDecimal totalPrice;

    /**
     * 租户id
     */
    @Excel(name = "租户id")
    private String tenantId;

    private List<OrderRefundDetails> refundDetailsList;

    private List<Map<String, Object>> facilityDetailList;
}
